package top.codestudy.wanandroid.uimanager;

import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

import top.codestudy.wanandroid.R;

public class TopBarManager {
    private String TAG = getClass().getSimpleName();

    public ImageView ivLeft;
    public TextView tvLeft;
    public TextView tvCenter;
    public ImageView ivRightConvenient;
    public ImageView ivRight;

    /**
     *
     * @param window 从activity中调用 getWindow（）获取Window对象实例
     */
    public TopBarManager(Window window){
        View decorView = window.getDecorView();
        ivLeft = decorView.findViewById(R.id.iv_left);
        tvLeft = decorView.findViewById(R.id.tv_left_title);
        tvCenter = decorView.findViewById(R.id.tv_center_title);
        ivRightConvenient = decorView.findViewById(R.id.iv_right_convenient);
        ivRight = decorView.findViewById(R.id.iv_right);

    }



}
